# -*- coding: utf-8 -*-
# Created by liangfuting on 2020/7/9
# Copyright (c) 2020 liangfuting. All rights reserved.
from django.shortcuts import render,HttpResponse
from stark.service.v1 import site,StarkHandler
from app02.models import Host,Role


class HostHandler(StarkHandler):
    list_display = ['id', 'host']


# print("app02 stark py")
# print(site.__dict__.get('_registry'))

class RoleHandler(StarkHandler):
    pass

site.register(Host,HostHandler)
site.register(Role)